package com.api.client.imp;

import com.api.client.Response;
import com.api.client.ResponseStatus;

final class ResponseImp implements Response{
	
	private final org.scribe.model.Response response;
	
	private final ResponseStatus status;
	
	ResponseImp(org.scribe.model.Response response){
		
		this.response = response;
		this.status = ResponseStatus.valueOf(response.getCode());
	}

	public ResponseStatus getStatus() {
		return status;
	}

	public String getBody() {
		return response.getBody();
	}
	
	public String toString(){
		return status.toString();
	}
}
